<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621680839774"><span id="local-6989586621680839775"><span id="local-6989586621680839776"><span id="local-6989586621680839777"><span id="local-6989586621680839778"><span id="local-6989586621680839779"><span id="local-6989586621680839780"><span id="local-6989586621680839781"><span id="local-6989586621680839782"><span id="local-6989586621680839783"></span></span></span></span></span></span></span></span></span></span><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-2"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Types.CostCentre</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-3"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier">CostCentre</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CcName"><span class="hs-identifier">CcName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier">CCFlavour</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-4"></span><span>                </span><span class="hs-comment">-- All abstract except to friend: ParseIface.y</span><span>
</span><span id="line-5"></span><span>
</span><span id="line-6"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier">CostCentreStack</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-7"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#CollectedCCs"><span class="hs-identifier">CollectedCCs</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#emptyCollectedCCs"><span class="hs-identifier">emptyCollectedCCs</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#collectCC"><span class="hs-identifier">collectCC</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-8"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#currentCCS"><span class="hs-identifier">currentCCS</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#dontCareCCS"><span class="hs-identifier">dontCareCCS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-9"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#isCurrentCCS"><span class="hs-identifier">isCurrentCCS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-10"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#maybeSingletonCCS"><span class="hs-identifier">maybeSingletonCCS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#mkUserCC"><span class="hs-identifier">mkUserCC</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#mkAutoCC"><span class="hs-identifier">mkAutoCC</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#mkAllCafsCC"><span class="hs-identifier">mkAllCafsCC</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-13"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#mkSingletonCCS"><span class="hs-identifier">mkSingletonCCS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-14"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCCS"><span class="hs-identifier">isCafCCS</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier">isCafCC</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#isSccCountCC"><span class="hs-identifier">isSccCountCC</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#sccAbleCC"><span class="hs-identifier">sccAbleCC</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#ccFromThisModule"><span class="hs-identifier">ccFromThisModule</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-15"></span><span>
</span><span id="line-16"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#pprCostCentreCore"><span class="hs-identifier">pprCostCentreCore</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-17"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreUserName"><span class="hs-identifier">costCentreUserName</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreUserNameFS"><span class="hs-identifier">costCentreUserNameFS</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-18"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreSrcSpan"><span class="hs-identifier">costCentreSrcSpan</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span>        </span><span class="annot"><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier">cmpCostCentre</span></a></span><span>   </span><span class="hs-comment">-- used for removing dups in a list</span><span>
</span><span id="line-21"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Binary.html"><span class="hs-identifier">GHC.Utils.Binary</span></a></span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Var.html"><span class="hs-identifier">GHC.Types.Var</span></a></span><span>
</span><span id="line-27"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Name.html"><span class="hs-identifier">GHC.Types.Name</span></a></span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Unit.Module.html"><span class="hs-identifier">GHC.Unit.Module</span></a></span><span>
</span><span id="line-29"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.html"><span class="hs-identifier">GHC.Types.Unique</span></a></span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span>
</span><span id="line-31"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html"><span class="hs-identifier">GHC.Types.SrcLoc</span></a></span><span>
</span><span id="line-32"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html"><span class="hs-identifier">GHC.Data.FastString</span></a></span><span>
</span><span id="line-33"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Misc.html"><span class="hs-identifier">GHC.Utils.Misc</span></a></span><span>
</span><span id="line-34"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.State.html"><span class="hs-identifier">GHC.Types.CostCentre.State</span></a></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#"><span class="hs-identifier">Data.Data</span></a></span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-39"></span><span class="hs-comment">-- Cost Centres</span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span class="hs-comment">-- | A Cost Centre is a single @{-# SCC #-}@ annotation.</span><span>
</span><span id="line-42"></span><span>
</span><span id="line-43"></span><span class="hs-keyword">data</span><span> </span><span id="CostCentre"><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-var">CostCentre</span></a></span></span><span>
</span><span id="line-44"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span id="NormalCC"><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-var">NormalCC</span></a></span></span><span> </span><span class="hs-special">{</span><span>
</span><span id="line-45"></span><span>                </span><span id="cc_flavour"><span class="annot"><span class="annottext">CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var hs-var">cc_flavour</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-46"></span><span>                 </span><span class="hs-comment">-- ^ Two cost centres may have the same name and</span><span>
</span><span id="line-47"></span><span>                 </span><span class="hs-comment">-- module but different SrcSpans, so we need a way to</span><span>
</span><span id="line-48"></span><span>                 </span><span class="hs-comment">-- distinguish them easily and give them different</span><span>
</span><span id="line-49"></span><span>                 </span><span class="hs-comment">-- object-code labels.  So every CostCentre has an</span><span>
</span><span id="line-50"></span><span>                 </span><span class="hs-comment">-- associated flavour that indicates how it was</span><span>
</span><span id="line-51"></span><span>                 </span><span class="hs-comment">-- generated, and flavours that allow multiple instances</span><span>
</span><span id="line-52"></span><span>                 </span><span class="hs-comment">-- of the same name and module have a deterministic 0-based</span><span>
</span><span id="line-53"></span><span>                 </span><span class="hs-comment">-- index.</span><span>
</span><span id="line-54"></span><span>                </span><span id="cc_name"><span class="annot"><span class="annottext">CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var hs-var">cc_name</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CcName"><span class="hs-identifier hs-type">CcName</span></a></span><span class="hs-special">,</span><span>      </span><span class="hs-comment">-- ^ Name of the cost centre itself</span><span>
</span><span id="line-55"></span><span>                </span><span id="cc_mod"><span class="annot"><span class="annottext">CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var hs-var">cc_mod</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span class="hs-special">,</span><span>      </span><span class="hs-comment">-- ^ Name of module defining this CC.</span><span>
</span><span id="line-56"></span><span>                </span><span id="cc_loc"><span class="annot"><span class="annottext">CostCentre -&gt; SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var hs-var">cc_loc</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#SrcSpan"><span class="hs-identifier hs-type">SrcSpan</span></a></span><span>
</span><span id="line-57"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-58"></span><span>
</span><span id="line-59"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span id="AllCafsCC"><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-var">AllCafsCC</span></a></span></span><span> </span><span class="hs-special">{</span><span>
</span><span id="line-60"></span><span>                </span><span id="cc_mod"><span class="annot"><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span class="hs-special">,</span><span>      </span><span class="hs-comment">-- Name of module defining this CC.</span><span>
</span><span id="line-61"></span><span>                </span><span id="cc_loc"><span class="annot"><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var">cc_loc</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#SrcSpan"><span class="hs-identifier hs-type">SrcSpan</span></a></span><span>
</span><span id="line-62"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-63"></span><span>  </span><span class="hs-keyword">deriving</span><span> </span><span id="local-6989586621680839669"><span id="local-6989586621680839671"><span id="local-6989586621680839673"><span id="local-6989586621680839675"><span id="local-6989586621680839677"><span id="local-6989586621680839679"><span id="local-6989586621680839681"><span id="local-6989586621680839683"><span id="local-6989586621680839685"><span id="local-6989586621680839687"><span id="local-6989586621680839689"><span id="local-6989586621680839691"><span id="local-6989586621680839700"><span id="local-6989586621680839712"><span class="annot"><span class="annottext">Typeable CostCentre
Typeable CostCentre
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; CostCentre -&gt; c CostCentre)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CostCentre)
-&gt; (CostCentre -&gt; Constr)
-&gt; (CostCentre -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CostCentre))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e))
    -&gt; Maybe (c CostCentre))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; CostCentre -&gt; CostCentre)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre)
-&gt; Data CostCentre
CostCentre -&gt; DataType
CostCentre -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; CostCentre -&gt; CostCentre
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CostCentre
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CostCentre -&gt; c CostCentre
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CostCentre)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CostCentre)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CostCentre -&gt; m CostCentre
gmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; u
$cgmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CostCentre -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CostCentre -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; CostCentre -&gt; CostCentre
$cgmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; CostCentre -&gt; CostCentre
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CostCentre)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CostCentre)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CostCentre)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CostCentre)
dataTypeOf :: CostCentre -&gt; DataType
$cdataTypeOf :: CostCentre -&gt; DataType
toConstr :: CostCentre -&gt; Constr
$ctoConstr :: CostCentre -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CostCentre
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CostCentre
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CostCentre -&gt; c CostCentre
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CostCentre -&gt; c CostCentre
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span>
</span><span id="line-64"></span><span>
</span><span id="line-65"></span><span class="hs-keyword">type</span><span> </span><span id="CcName"><span class="annot"><a href="GHC.Types.CostCentre.html#CcName"><span class="hs-identifier hs-var">CcName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span>
</span><span id="line-66"></span><span>
</span><span id="line-67"></span><span class="hs-comment">-- | The flavour of a cost centre.</span><span>
</span><span id="line-68"></span><span class="hs-comment">--</span><span>
</span><span id="line-69"></span><span class="hs-comment">-- Index fields represent 0-based indices giving source-code ordering of</span><span>
</span><span id="line-70"></span><span class="hs-comment">-- centres with the same module, name, and flavour.</span><span>
</span><span id="line-71"></span><span class="hs-keyword">data</span><span> </span><span id="CCFlavour"><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-var">CCFlavour</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="CafCC"><span class="annot"><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span></span><span> </span><span class="hs-comment">-- ^ Auto-generated top-level thunk</span><span>
</span><span id="line-72"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="ExprCC"><span class="annot"><a href="GHC.Types.CostCentre.html#ExprCC"><span class="hs-identifier hs-var">ExprCC</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="GHC.Types.CostCentre.State.html#CostCentreIndex"><span class="hs-identifier hs-type">CostCentreIndex</span></a></span><span> </span><span class="hs-comment">-- ^ Explicitly annotated expression</span><span>
</span><span id="line-73"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="DeclCC"><span class="annot"><a href="GHC.Types.CostCentre.html#DeclCC"><span class="hs-identifier hs-var">DeclCC</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="GHC.Types.CostCentre.State.html#CostCentreIndex"><span class="hs-identifier hs-type">CostCentreIndex</span></a></span><span> </span><span class="hs-comment">-- ^ Explicitly annotated declaration</span><span>
</span><span id="line-74"></span><span>               </span><span class="hs-glyph">|</span><span> </span><span id="HpcCC"><span class="annot"><a href="GHC.Types.CostCentre.html#HpcCC"><span class="hs-identifier hs-var">HpcCC</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="GHC.Types.CostCentre.State.html#CostCentreIndex"><span class="hs-identifier hs-type">CostCentreIndex</span></a></span><span> </span><span class="hs-comment">-- ^ Generated by HPC for coverage</span><span>
</span><span id="line-75"></span><span>               </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621680839654"><span id="local-6989586621680839660"><span class="annot"><span class="annottext">CCFlavour -&gt; CCFlavour -&gt; Bool
(CCFlavour -&gt; CCFlavour -&gt; Bool)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Bool) -&gt; Eq CCFlavour
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c/= :: CCFlavour -&gt; CCFlavour -&gt; Bool
== :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c== :: CCFlavour -&gt; CCFlavour -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680839633"><span id="local-6989586621680839635"><span id="local-6989586621680839637"><span id="local-6989586621680839639"><span id="local-6989586621680839641"><span id="local-6989586621680839643"><span id="local-6989586621680839649"><span class="annot"><span class="annottext">Eq CCFlavour
Eq CCFlavour
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Ordering)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Bool)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Bool)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Bool)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; Bool)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; CCFlavour)
-&gt; (CCFlavour -&gt; CCFlavour -&gt; CCFlavour)
-&gt; Ord CCFlavour
CCFlavour -&gt; CCFlavour -&gt; Bool
CCFlavour -&gt; CCFlavour -&gt; Ordering
CCFlavour -&gt; CCFlavour -&gt; CCFlavour
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: CCFlavour -&gt; CCFlavour -&gt; CCFlavour
$cmin :: CCFlavour -&gt; CCFlavour -&gt; CCFlavour
max :: CCFlavour -&gt; CCFlavour -&gt; CCFlavour
$cmax :: CCFlavour -&gt; CCFlavour -&gt; CCFlavour
&gt;= :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c&gt;= :: CCFlavour -&gt; CCFlavour -&gt; Bool
&gt; :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c&gt; :: CCFlavour -&gt; CCFlavour -&gt; Bool
&lt;= :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c&lt;= :: CCFlavour -&gt; CCFlavour -&gt; Bool
&lt; :: CCFlavour -&gt; CCFlavour -&gt; Bool
$c&lt; :: CCFlavour -&gt; CCFlavour -&gt; Bool
compare :: CCFlavour -&gt; CCFlavour -&gt; Ordering
$ccompare :: CCFlavour -&gt; CCFlavour -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680839595"><span id="local-6989586621680839597"><span id="local-6989586621680839599"><span id="local-6989586621680839601"><span id="local-6989586621680839603"><span id="local-6989586621680839605"><span id="local-6989586621680839607"><span id="local-6989586621680839609"><span id="local-6989586621680839611"><span id="local-6989586621680839613"><span id="local-6989586621680839615"><span id="local-6989586621680839617"><span id="local-6989586621680839622"><span id="local-6989586621680839628"><span class="annot"><span class="annottext">Typeable CCFlavour
Typeable CCFlavour
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; CCFlavour -&gt; c CCFlavour)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CCFlavour)
-&gt; (CCFlavour -&gt; Constr)
-&gt; (CCFlavour -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CCFlavour))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CCFlavour))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; CCFlavour -&gt; CCFlavour)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour)
-&gt; Data CCFlavour
CCFlavour -&gt; DataType
CCFlavour -&gt; Constr
(forall b. Data b =&gt; b -&gt; b) -&gt; CCFlavour -&gt; CCFlavour
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CCFlavour
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CCFlavour -&gt; c CCFlavour
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CCFlavour)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CCFlavour)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d) -&gt; CCFlavour -&gt; m CCFlavour
gmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; u
$cgmapQi :: forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CCFlavour -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CCFlavour -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; CCFlavour -&gt; CCFlavour
$cgmapT :: (forall b. Data b =&gt; b -&gt; b) -&gt; CCFlavour -&gt; CCFlavour
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CCFlavour)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c CCFlavour)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CCFlavour)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CCFlavour)
dataTypeOf :: CCFlavour -&gt; DataType
$cdataTypeOf :: CCFlavour -&gt; DataType
toConstr :: CCFlavour -&gt; Constr
$ctoConstr :: CCFlavour -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CCFlavour
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CCFlavour
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CCFlavour -&gt; c CCFlavour
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CCFlavour -&gt; c CCFlavour
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span class="hs-special">)</span><span>
</span><span id="line-76"></span><span>
</span><span id="line-77"></span><span class="hs-comment">-- | Extract the index from a flavour</span><span>
</span><span id="line-78"></span><span class="annot"><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-type">flavourIndex</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-79"></span><span id="flavourIndex"><span class="annot"><span class="annottext">flavourIndex :: CCFlavour -&gt; Int
</span><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-var hs-var">flavourIndex</span></a></span></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-80"></span><span class="annot"><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-var">flavourIndex</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#ExprCC"><span class="hs-identifier hs-type">ExprCC</span></a></span><span> </span><span id="local-6989586621680839593"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839593"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; Int
</span><a href="GHC.Types.CostCentre.State.html#unCostCentreIndex"><span class="hs-identifier hs-var hs-var">unCostCentreIndex</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839593"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-81"></span><span class="annot"><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-var">flavourIndex</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#DeclCC"><span class="hs-identifier hs-type">DeclCC</span></a></span><span> </span><span id="local-6989586621680839591"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839591"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; Int
</span><a href="GHC.Types.CostCentre.State.html#unCostCentreIndex"><span class="hs-identifier hs-var hs-var">unCostCentreIndex</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839591"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-82"></span><span class="annot"><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-var">flavourIndex</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#HpcCC"><span class="hs-identifier hs-type">HpcCC</span></a></span><span> </span><span id="local-6989586621680839590"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839590"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; Int
</span><a href="GHC.Types.CostCentre.State.html#unCostCentreIndex"><span class="hs-identifier hs-var hs-var">unCostCentreIndex</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839590"><span class="hs-identifier hs-var">x</span></a></span><span>
</span><span id="line-83"></span><span>
</span><span id="line-84"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839587"><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-85"></span><span>        </span><span id="local-6989586621680839586"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839586"><span class="hs-identifier hs-var">c1</span></a></span></span><span> </span><span id="local-6989586621680839585"><span class="annot"><span class="annottext">== :: CostCentre -&gt; CostCentre -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">==</span></span></span><span> </span><span id="local-6989586621680839584"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839584"><span class="hs-identifier hs-var">c2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839586"><span class="hs-identifier hs-var">c1</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; CostCentre -&gt; Ordering
</span><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-operator hs-var">`cmpCostCentre`</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839584"><span class="hs-identifier hs-var">c2</span></a></span><span> </span><span class="hs-keyword">of</span><span> </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">EQ</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span class="hs-special">;</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-86"></span><span>
</span><span id="line-87"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839569"><span id="local-6989586621680839571"><span id="local-6989586621680839573"><span id="local-6989586621680839575"><span id="local-6989586621680839577"><span id="local-6989586621680839579"><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-88"></span><span>        </span><span id="local-6989586621680839568"><span class="annot"><span class="annottext">compare :: CostCentre -&gt; CostCentre -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var">compare</span></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; CostCentre -&gt; Ordering
</span><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier hs-var">cmpCostCentre</span></a></span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span class="annot"><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier hs-type">cmpCostCentre</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Ordering</span></span><span>
</span><span id="line-91"></span><span>
</span><span id="line-92"></span><span id="cmpCostCentre"><span class="annot"><span class="annottext">cmpCostCentre :: CostCentre -&gt; CostCentre -&gt; Ordering
</span><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier hs-var hs-var">cmpCostCentre</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span>  </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839566"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839566"><span class="hs-identifier hs-var">m1</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span>  </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839565"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839565"><span class="hs-identifier hs-var">m2</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span>
</span><span id="line-93"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839566"><span class="hs-identifier hs-var">m1</span></a></span><span> </span><span class="annot"><span class="annottext">Module -&gt; Module -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839565"><span class="hs-identifier hs-var">m2</span></a></span><span>
</span><span id="line-94"></span><span>
</span><span id="line-95"></span><span class="annot"><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier hs-var">cmpCostCentre</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839564"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839564"><span class="hs-identifier hs-var">f1</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span>  </span><span id="local-6989586621680839563"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839563"><span class="hs-identifier hs-var">m1</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_name :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839562"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839562"><span class="hs-identifier hs-var">n1</span></a></span></span><span class="hs-special">}</span><span>
</span><span id="line-96"></span><span>              </span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839561"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839561"><span class="hs-identifier hs-var">f2</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span>  </span><span id="local-6989586621680839560"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839560"><span class="hs-identifier hs-var">m2</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_name :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839559"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839559"><span class="hs-identifier hs-var">n2</span></a></span></span><span class="hs-special">}</span><span>
</span><span id="line-97"></span><span>    </span><span class="hs-comment">-- first key is module name, then centre name, then flavour</span><span>
</span><span id="line-98"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839563"><span class="hs-identifier hs-var">m1</span></a></span><span> </span><span class="annot"><span class="annottext">Module -&gt; Module -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839560"><span class="hs-identifier hs-var">m2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Ordering -&gt; Ordering -&gt; Ordering
</span><a href="GHC.Utils.Misc.html#thenCmp"><span class="hs-operator hs-var">`thenCmp`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839562"><span class="hs-identifier hs-var">n1</span></a></span><span> </span><span class="annot"><span class="annottext">CcName -&gt; CcName -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839559"><span class="hs-identifier hs-var">n2</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Ordering -&gt; Ordering -&gt; Ordering
</span><a href="GHC.Utils.Misc.html#thenCmp"><span class="hs-operator hs-var">`thenCmp`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839564"><span class="hs-identifier hs-var">f1</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour -&gt; CCFlavour -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839561"><span class="hs-identifier hs-var">f2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-99"></span><span>
</span><span id="line-100"></span><span class="annot"><a href="GHC.Types.CostCentre.html#cmpCostCentre"><span class="hs-identifier hs-var">cmpCostCentre</span></a></span><span> </span><span id="local-6989586621680839557"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839557"><span class="hs-identifier hs-var">other_1</span></a></span></span><span> </span><span id="local-6989586621680839556"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839556"><span class="hs-identifier hs-var">other_2</span></a></span></span><span>
</span><span id="line-101"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">let</span><span>
</span><span id="line-102"></span><span>        </span><span id="local-6989586621680839555"><span class="annot"><span class="annottext">tag1 :: Int
</span><a href="#local-6989586621680839555"><span class="hs-identifier hs-var hs-var">tag1</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Int
</span><a href="#local-6989586621680839554"><span class="hs-identifier hs-var">tag_CC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839557"><span class="hs-identifier hs-var">other_1</span></a></span><span>
</span><span id="line-103"></span><span>        </span><span id="local-6989586621680839553"><span class="annot"><span class="annottext">tag2 :: Int
</span><a href="#local-6989586621680839553"><span class="hs-identifier hs-var hs-var">tag2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Int
</span><a href="#local-6989586621680839554"><span class="hs-identifier hs-var">tag_CC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839556"><span class="hs-identifier hs-var">other_2</span></a></span><span>
</span><span id="line-104"></span><span>    </span><span class="hs-keyword">in</span><span>
</span><span id="line-105"></span><span>    </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839555"><span class="hs-identifier hs-var">tag1</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839553"><span class="hs-identifier hs-var">tag2</span></a></span><span> </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">LT</span></span><span> </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">GT</span></span><span>
</span><span id="line-106"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-107"></span><span>    </span><span class="annot"><a href="#local-6989586621680839554"><span class="hs-identifier hs-type">tag_CC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-108"></span><span>    </span><span id="local-6989586621680839554"><span class="annot"><span class="annottext">tag_CC :: CostCentre -&gt; Int
</span><a href="#local-6989586621680839554"><span class="hs-identifier hs-var hs-var">tag_CC</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span>   </span><span class="hs-special">{</span><span class="hs-special">}</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-109"></span><span>    </span><span class="annot"><a href="#local-6989586621680839554"><span class="hs-identifier hs-var">tag_CC</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span>  </span><span class="hs-special">{</span><span class="hs-special">}</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span>
</span><span id="line-110"></span><span>
</span><span id="line-111"></span><span>
</span><span id="line-112"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-113"></span><span class="hs-comment">-- Predicates on CostCentre</span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-type">isCafCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-116"></span><span id="isCafCC"><span class="annot"><span class="annottext">isCafCC :: CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var hs-var">isCafCC</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span> </span><span class="hs-special">{</span><span class="hs-special">}</span><span class="hs-special">)</span><span>                  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-117"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var">isCafCC</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span class="hs-special">}</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-118"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var">isCafCC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><span class="hs-identifier">_</span></span><span>                               </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-119"></span><span>
</span><span id="line-120"></span><span class="hs-comment">-- | Is this a cost-centre which records scc counts</span><span>
</span><span id="line-121"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isSccCountCC"><span class="hs-identifier hs-type">isSccCountCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-122"></span><span id="isSccCountCC"><span class="annot"><span class="annottext">isSccCountCC :: CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isSccCountCC"><span class="hs-identifier hs-var hs-var">isSccCountCC</span></a></span></span><span> </span><span id="local-6989586621680839551"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839551"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var">isCafCC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839551"><span class="hs-identifier hs-var">cc</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-123"></span><span>                </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-124"></span><span>
</span><span id="line-125"></span><span class="hs-comment">-- | Is this a cost-centre which can be sccd ?</span><span>
</span><span id="line-126"></span><span class="annot"><a href="GHC.Types.CostCentre.html#sccAbleCC"><span class="hs-identifier hs-type">sccAbleCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-127"></span><span id="sccAbleCC"><span class="annot"><span class="annottext">sccAbleCC :: CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#sccAbleCC"><span class="hs-identifier hs-var hs-var">sccAbleCC</span></a></span></span><span> </span><span id="local-6989586621680839550"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839550"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var">isCafCC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839550"><span class="hs-identifier hs-var">cc</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-128"></span><span>             </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-129"></span><span>
</span><span id="line-130"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ccFromThisModule"><span class="hs-identifier hs-type">ccFromThisModule</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-131"></span><span id="ccFromThisModule"><span class="annot"><span class="annottext">ccFromThisModule :: CostCentre -&gt; Module -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#ccFromThisModule"><span class="hs-identifier hs-var hs-var">ccFromThisModule</span></a></span></span><span> </span><span id="local-6989586621680839549"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839549"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span id="local-6989586621680839548"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839548"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var hs-var">cc_mod</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839549"><span class="hs-identifier hs-var">cc</span></a></span><span> </span><span class="annot"><span class="annottext">Module -&gt; Module -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839548"><span class="hs-identifier hs-var">m</span></a></span><span>
</span><span id="line-132"></span><span>
</span><span id="line-133"></span><span>
</span><span id="line-134"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-135"></span><span class="hs-comment">-- Building cost centres</span><span>
</span><span id="line-136"></span><span>
</span><span id="line-137"></span><span class="annot"><a href="GHC.Types.CostCentre.html#mkUserCC"><span class="hs-identifier hs-type">mkUserCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#SrcSpan"><span class="hs-identifier hs-type">SrcSpan</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span>
</span><span id="line-138"></span><span id="mkUserCC"><span class="annot"><span class="annottext">mkUserCC :: CcName -&gt; Module -&gt; SrcSpan -&gt; CCFlavour -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#mkUserCC"><span class="hs-identifier hs-var hs-var">mkUserCC</span></a></span></span><span> </span><span id="local-6989586621680839547"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839547"><span class="hs-identifier hs-var">cc_name</span></a></span></span><span> </span><span id="local-6989586621680839546"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839546"><span class="hs-identifier hs-var">mod</span></a></span></span><span> </span><span id="local-6989586621680839545"><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839545"><span class="hs-identifier hs-var">loc</span></a></span></span><span> </span><span id="local-6989586621680839544"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839544"><span class="hs-identifier hs-var">flavour</span></a></span></span><span>
</span><span id="line-139"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NormalCC :: CCFlavour -&gt; CcName -&gt; Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">cc_name :: CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839547"><span class="hs-identifier hs-var">cc_name</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_mod :: Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span>  </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839546"><span class="hs-identifier hs-var">mod</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_loc :: SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var">cc_loc</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839545"><span class="hs-identifier hs-var">loc</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-140"></span><span>               </span><span class="annot"><span class="annottext">cc_flavour :: CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839544"><span class="hs-identifier hs-var">flavour</span></a></span><span>
</span><span id="line-141"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-142"></span><span>
</span><span id="line-143"></span><span class="annot"><a href="GHC.Types.CostCentre.html#mkAutoCC"><span class="hs-identifier hs-type">mkAutoCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.Var.html#Id"><span class="hs-identifier hs-type">Id</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span>
</span><span id="line-144"></span><span id="mkAutoCC"><span class="annot"><span class="annottext">mkAutoCC :: Id -&gt; Module -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#mkAutoCC"><span class="hs-identifier hs-var hs-var">mkAutoCC</span></a></span></span><span> </span><span id="local-6989586621680839543"><span class="annot"><span class="annottext">Id
</span><a href="#local-6989586621680839543"><span class="hs-identifier hs-var">id</span></a></span></span><span> </span><span id="local-6989586621680839542"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839542"><span class="hs-identifier hs-var">mod</span></a></span></span><span>
</span><span id="line-145"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">NormalCC :: CCFlavour -&gt; CcName -&gt; Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">cc_name :: CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839541"><span class="hs-identifier hs-var">str</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_mod :: Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span>  </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839542"><span class="hs-identifier hs-var">mod</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-146"></span><span>               </span><span class="annot"><span class="annottext">cc_loc :: SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var">cc_loc</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Name -&gt; SrcSpan
</span><a href="GHC.Types.Name.html#nameSrcSpan"><span class="hs-identifier hs-var">nameSrcSpan</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Id -&gt; Name
forall a. NamedThing a =&gt; a -&gt; Name
</span><a href="GHC.Types.Name.html#getName"><span class="hs-identifier hs-var">getName</span></a></span><span> </span><span class="annot"><span class="annottext">Id
</span><a href="#local-6989586621680839543"><span class="hs-identifier hs-var">id</span></a></span><span class="hs-special">)</span><span class="hs-special">,</span><span>
</span><span id="line-147"></span><span>               </span><span class="annot"><span class="annottext">cc_flavour :: CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span>
</span><span id="line-148"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-149"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-150"></span><span>        </span><span id="local-6989586621680839537"><span class="annot"><span class="annottext">name :: Name
</span><a href="#local-6989586621680839537"><span class="hs-identifier hs-var hs-var">name</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Id -&gt; Name
forall a. NamedThing a =&gt; a -&gt; Name
</span><a href="GHC.Types.Name.html#getName"><span class="hs-identifier hs-var">getName</span></a></span><span> </span><span class="annot"><span class="annottext">Id
</span><a href="#local-6989586621680839543"><span class="hs-identifier hs-var">id</span></a></span><span>
</span><span id="line-151"></span><span>        </span><span class="hs-comment">-- beware: only external names are guaranteed to have unique</span><span>
</span><span id="line-152"></span><span>        </span><span class="hs-comment">-- Occnames.  If the name is not external, we must append its</span><span>
</span><span id="line-153"></span><span>        </span><span class="hs-comment">-- Unique.</span><span>
</span><span id="line-154"></span><span>        </span><span class="hs-comment">-- See bug #249, tests prof001, prof002,  also #2411</span><span>
</span><span id="line-155"></span><span>        </span><span id="local-6989586621680839541"><span class="annot"><span class="annottext">str :: CcName
</span><a href="#local-6989586621680839541"><span class="hs-identifier hs-var hs-var">str</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Name -&gt; Bool
</span><a href="GHC.Types.Name.html#isExternalName"><span class="hs-identifier hs-var">isExternalName</span></a></span><span> </span><span class="annot"><span class="annottext">Name
</span><a href="#local-6989586621680839537"><span class="hs-identifier hs-var">name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; CcName
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Id -&gt; OccName
forall a. NamedThing a =&gt; a -&gt; OccName
</span><a href="GHC.Types.Name.html#getOccName"><span class="hs-identifier hs-var">getOccName</span></a></span><span> </span><span class="annot"><span class="annottext">Id
</span><a href="#local-6989586621680839543"><span class="hs-identifier hs-var">id</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-156"></span><span>            </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>           </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">OccName -&gt; CcName
</span><a href="GHC.Types.Name.Occurrence.html#occNameFS"><span class="hs-identifier hs-var hs-var">occNameFS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Id -&gt; OccName
forall a. NamedThing a =&gt; a -&gt; OccName
</span><a href="GHC.Types.Name.html#getOccName"><span class="hs-identifier hs-var">getOccName</span></a></span><span> </span><span class="annot"><span class="annottext">Id
</span><a href="#local-6989586621680839543"><span class="hs-identifier hs-var">id</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-157"></span><span>                                    </span><span class="annot"><span class="annottext">CcName -&gt; CcName -&gt; CcName
</span><a href="GHC.Data.FastString.html#appendFS"><span class="hs-operator hs-var">`appendFS`</span></a></span><span>
</span><span id="line-158"></span><span>                                    </span><span class="annot"><span class="annottext">String -&gt; CcName
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'_'</span></span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; String
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">Unique -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Name -&gt; Unique
forall a. Uniquable a =&gt; a -&gt; Unique
</span><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var">getUnique</span></a></span><span> </span><span class="annot"><span class="annottext">Name
</span><a href="#local-6989586621680839537"><span class="hs-identifier hs-var">name</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-159"></span><span class="annot"><a href="GHC.Types.CostCentre.html#mkAllCafsCC"><span class="hs-identifier hs-type">mkAllCafsCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Unit.Types.html#Module"><span class="hs-identifier hs-type">Module</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#SrcSpan"><span class="hs-identifier hs-type">SrcSpan</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span>
</span><span id="line-160"></span><span id="mkAllCafsCC"><span class="annot"><span class="annottext">mkAllCafsCC :: Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#mkAllCafsCC"><span class="hs-identifier hs-var hs-var">mkAllCafsCC</span></a></span></span><span> </span><span id="local-6989586621680839523"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839523"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621680839522"><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839522"><span class="hs-identifier hs-var">loc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">AllCafsCC :: Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span> </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">cc_mod :: Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839523"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_loc :: SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var">cc_loc</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839522"><span class="hs-identifier hs-var">loc</span></a></span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-161"></span><span>
</span><span id="line-162"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-163"></span><span class="hs-comment">-- Cost Centre Stacks</span><span>
</span><span id="line-164"></span><span>
</span><span id="line-165"></span><span class="hs-comment">-- | A Cost Centre Stack is something that can be attached to a closure.</span><span>
</span><span id="line-166"></span><span class="hs-comment">-- This is either:</span><span>
</span><span id="line-167"></span><span class="hs-comment">--</span><span>
</span><span id="line-168"></span><span class="hs-comment">--      * the current cost centre stack (CCCS)</span><span>
</span><span id="line-169"></span><span class="hs-comment">--      * a pre-defined cost centre stack (there are several</span><span>
</span><span id="line-170"></span><span class="hs-comment">--        pre-defined CCSs, see below).</span><span>
</span><span id="line-171"></span><span>
</span><span id="line-172"></span><span class="hs-keyword">data</span><span> </span><span id="CostCentreStack"><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-var">CostCentreStack</span></a></span></span><span>
</span><span id="line-173"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span id="CurrentCCS"><span class="annot"><a href="GHC.Types.CostCentre.html#CurrentCCS"><span class="hs-identifier hs-var">CurrentCCS</span></a></span></span><span>          </span><span class="hs-comment">-- Pinned on a let(rec)-bound</span><span>
</span><span id="line-174"></span><span>                        </span><span class="hs-comment">-- thunk/function/constructor, this says that the</span><span>
</span><span id="line-175"></span><span>                        </span><span class="hs-comment">-- cost centre to be attached to the object, when it</span><span>
</span><span id="line-176"></span><span>                        </span><span class="hs-comment">-- is allocated, is whatever is in the</span><span>
</span><span id="line-177"></span><span>                        </span><span class="hs-comment">-- current-cost-centre-stack register.</span><span>
</span><span id="line-178"></span><span>
</span><span id="line-179"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span id="DontCareCCS"><span class="annot"><a href="GHC.Types.CostCentre.html#DontCareCCS"><span class="hs-identifier hs-var">DontCareCCS</span></a></span></span><span>         </span><span class="hs-comment">-- We need a CCS to stick in static closures</span><span>
</span><span id="line-180"></span><span>                        </span><span class="hs-comment">-- (for data), but we *don't* expect them to</span><span>
</span><span id="line-181"></span><span>                        </span><span class="hs-comment">-- accumulate any costs.  But we still need</span><span>
</span><span id="line-182"></span><span>                        </span><span class="hs-comment">-- the placeholder.  This CCS is it.</span><span>
</span><span id="line-183"></span><span>
</span><span id="line-184"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span id="SingletonCCS"><span class="annot"><a href="GHC.Types.CostCentre.html#SingletonCCS"><span class="hs-identifier hs-var">SingletonCCS</span></a></span></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span>
</span><span id="line-185"></span><span>
</span><span id="line-186"></span><span>  </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621680839514"><span id="local-6989586621680839517"><span class="annot"><span class="annottext">CostCentreStack -&gt; CostCentreStack -&gt; Bool
(CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; Eq CostCentreStack
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c/= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
== :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c== :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680839493"><span id="local-6989586621680839495"><span id="local-6989586621680839498"><span id="local-6989586621680839501"><span id="local-6989586621680839504"><span id="local-6989586621680839507"><span id="local-6989586621680839510"><span class="annot"><span class="annottext">Eq CostCentreStack
Eq CostCentreStack
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Ordering)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; Bool)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack)
-&gt; (CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack)
-&gt; Ord CostCentreStack
CostCentreStack -&gt; CostCentreStack -&gt; Bool
CostCentreStack -&gt; CostCentreStack -&gt; Ordering
CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack
forall a.
Eq a
-&gt; (a -&gt; a -&gt; Ordering)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; Bool)
-&gt; (a -&gt; a -&gt; a)
-&gt; (a -&gt; a -&gt; a)
-&gt; Ord a
min :: CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack
$cmin :: CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack
max :: CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack
$cmax :: CostCentreStack -&gt; CostCentreStack -&gt; CostCentreStack
&gt;= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c&gt;= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
&gt; :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c&gt; :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
&lt;= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c&lt;= :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
&lt; :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
$c&lt; :: CostCentreStack -&gt; CostCentreStack -&gt; Bool
compare :: CostCentreStack -&gt; CostCentreStack -&gt; Ordering
$ccompare :: CostCentreStack -&gt; CostCentreStack -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Ord</span></span></span></span></span></span></span></span></span><span class="hs-special">)</span><span>    </span><span class="hs-comment">-- needed for Ord on CLabel</span><span>
</span><span id="line-187"></span><span>
</span><span id="line-188"></span><span>
</span><span id="line-189"></span><span class="hs-comment">-- synonym for triple which describes the cost centre info in the generated</span><span>
</span><span id="line-190"></span><span class="hs-comment">-- code for a module.</span><span>
</span><span id="line-191"></span><span class="hs-keyword">type</span><span> </span><span id="CollectedCCs"><span class="annot"><a href="GHC.Types.CostCentre.html#CollectedCCs"><span class="hs-identifier hs-var">CollectedCCs</span></a></span></span><span>
</span><span id="line-192"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span class="hs-special">]</span><span>       </span><span class="hs-comment">-- local cost-centres that need to be decl'd</span><span>
</span><span id="line-193"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span class="hs-special">]</span><span>  </span><span class="hs-comment">-- pre-defined &quot;singleton&quot; cost centre stacks</span><span>
</span><span id="line-194"></span><span>    </span><span class="hs-special">)</span><span>
</span><span id="line-195"></span><span>
</span><span id="line-196"></span><span class="annot"><a href="GHC.Types.CostCentre.html#emptyCollectedCCs"><span class="hs-identifier hs-type">emptyCollectedCCs</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CollectedCCs"><span class="hs-identifier hs-type">CollectedCCs</span></a></span><span>
</span><span id="line-197"></span><span id="emptyCollectedCCs"><span class="annot"><span class="annottext">emptyCollectedCCs :: CollectedCCs
</span><a href="GHC.Types.CostCentre.html#emptyCollectedCCs"><span class="hs-identifier hs-var hs-var">emptyCollectedCCs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="hs-special">[</span><span class="hs-special">]</span><span class="hs-special">,</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-198"></span><span>
</span><span id="line-199"></span><span class="annot"><a href="GHC.Types.CostCentre.html#collectCC"><span class="hs-identifier hs-type">collectCC</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CollectedCCs"><span class="hs-identifier hs-type">CollectedCCs</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CollectedCCs"><span class="hs-identifier hs-type">CollectedCCs</span></a></span><span>
</span><span id="line-200"></span><span id="collectCC"><span class="annot"><span class="annottext">collectCC :: CostCentre -&gt; CostCentreStack -&gt; CollectedCCs -&gt; CollectedCCs
</span><a href="GHC.Types.CostCentre.html#collectCC"><span class="hs-identifier hs-var hs-var">collectCC</span></a></span></span><span> </span><span id="local-6989586621680839492"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839492"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span id="local-6989586621680839491"><span class="annot"><span class="annottext">CostCentreStack
</span><a href="#local-6989586621680839491"><span class="hs-identifier hs-var">ccs</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621680839490"><span class="annot"><span class="annottext">[CostCentre]
</span><a href="#local-6989586621680839490"><span class="hs-identifier hs-var">c</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680839489"><span class="annot"><span class="annottext">[CostCentreStack]
</span><a href="#local-6989586621680839489"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839492"><span class="hs-identifier hs-var">cc</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; [CostCentre] -&gt; [CostCentre]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">[CostCentre]
</span><a href="#local-6989586621680839490"><span class="hs-identifier hs-var">c</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="#local-6989586621680839491"><span class="hs-identifier hs-var">ccs</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreStack -&gt; [CostCentreStack] -&gt; [CostCentreStack]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">[CostCentreStack]
</span><a href="#local-6989586621680839489"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-201"></span><span>
</span><span id="line-202"></span><span class="annot"><a href="GHC.Types.CostCentre.html#currentCCS"><span class="hs-identifier hs-type">currentCCS</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#dontCareCCS"><span class="hs-identifier hs-type">dontCareCCS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span>
</span><span id="line-203"></span><span>
</span><span id="line-204"></span><span id="currentCCS"><span class="annot"><span class="annottext">currentCCS :: CostCentreStack
</span><a href="GHC.Types.CostCentre.html#currentCCS"><span class="hs-identifier hs-var hs-var">currentCCS</span></a></span></span><span>              </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="GHC.Types.CostCentre.html#CurrentCCS"><span class="hs-identifier hs-var">CurrentCCS</span></a></span><span>
</span><span id="line-205"></span><span id="dontCareCCS"><span class="annot"><span class="annottext">dontCareCCS :: CostCentreStack
</span><a href="GHC.Types.CostCentre.html#dontCareCCS"><span class="hs-identifier hs-var hs-var">dontCareCCS</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="GHC.Types.CostCentre.html#DontCareCCS"><span class="hs-identifier hs-var">DontCareCCS</span></a></span><span>
</span><span id="line-206"></span><span>
</span><span id="line-207"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-208"></span><span class="hs-comment">-- Predicates on Cost-Centre Stacks</span><span>
</span><span id="line-209"></span><span>
</span><span id="line-210"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCurrentCCS"><span class="hs-identifier hs-type">isCurrentCCS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-211"></span><span id="isCurrentCCS"><span class="annot"><span class="annottext">isCurrentCCS :: CostCentreStack -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCurrentCCS"><span class="hs-identifier hs-var hs-var">isCurrentCCS</span></a></span></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="GHC.Types.CostCentre.html#CurrentCCS"><span class="hs-identifier hs-var">CurrentCCS</span></a></span><span>                 </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span>
</span><span id="line-212"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCurrentCCS"><span class="hs-identifier hs-var">isCurrentCCS</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><span class="hs-identifier">_</span></span><span>                          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-213"></span><span>
</span><span id="line-214"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCCS"><span class="hs-identifier hs-type">isCafCCS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-215"></span><span id="isCafCCS"><span class="annot"><span class="annottext">isCafCCS :: CostCentreStack -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCafCCS"><span class="hs-identifier hs-var hs-var">isCafCCS</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#SingletonCCS"><span class="hs-identifier hs-type">SingletonCCS</span></a></span><span> </span><span id="local-6989586621680839488"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839488"><span class="hs-identifier hs-var">cc</span></a></span></span><span class="hs-special">)</span><span>              </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Bool
</span><a href="GHC.Types.CostCentre.html#isCafCC"><span class="hs-identifier hs-var">isCafCC</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839488"><span class="hs-identifier hs-var">cc</span></a></span><span>
</span><span id="line-216"></span><span class="annot"><a href="GHC.Types.CostCentre.html#isCafCCS"><span class="hs-identifier hs-var">isCafCCS</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><span class="hs-identifier">_</span></span><span>                              </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">False</span></span><span>
</span><span id="line-217"></span><span>
</span><span id="line-218"></span><span class="annot"><a href="GHC.Types.CostCentre.html#maybeSingletonCCS"><span class="hs-identifier hs-type">maybeSingletonCCS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span>
</span><span id="line-219"></span><span id="maybeSingletonCCS"><span class="annot"><span class="annottext">maybeSingletonCCS :: CostCentreStack -&gt; Maybe CostCentre
</span><a href="GHC.Types.CostCentre.html#maybeSingletonCCS"><span class="hs-identifier hs-var hs-var">maybeSingletonCCS</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#SingletonCCS"><span class="hs-identifier hs-type">SingletonCCS</span></a></span><span> </span><span id="local-6989586621680839487"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839487"><span class="hs-identifier hs-var">cc</span></a></span></span><span class="hs-special">)</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; Maybe CostCentre
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839487"><span class="hs-identifier hs-var">cc</span></a></span><span>
</span><span id="line-220"></span><span class="annot"><a href="GHC.Types.CostCentre.html#maybeSingletonCCS"><span class="hs-identifier hs-var">maybeSingletonCCS</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><span class="hs-identifier">_</span></span><span>                     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe CostCentre
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-221"></span><span>
</span><span id="line-222"></span><span class="annot"><a href="GHC.Types.CostCentre.html#mkSingletonCCS"><span class="hs-identifier hs-type">mkSingletonCCS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span><span>
</span><span id="line-223"></span><span id="mkSingletonCCS"><span class="annot"><span class="annottext">mkSingletonCCS :: CostCentre -&gt; CostCentreStack
</span><a href="GHC.Types.CostCentre.html#mkSingletonCCS"><span class="hs-identifier hs-var hs-var">mkSingletonCCS</span></a></span></span><span> </span><span id="local-6989586621680839486"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839486"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; CostCentreStack
</span><a href="GHC.Types.CostCentre.html#SingletonCCS"><span class="hs-identifier hs-var">SingletonCCS</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839486"><span class="hs-identifier hs-var">cc</span></a></span><span>
</span><span id="line-224"></span><span>
</span><span id="line-225"></span><span>
</span><span id="line-226"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-227"></span><span class="hs-comment">-- Printing Cost Centre Stacks.</span><span>
</span><span id="line-228"></span><span>
</span><span id="line-229"></span><span class="hs-comment">-- The outputable instance for CostCentreStack prints the CCS as a C</span><span>
</span><span id="line-230"></span><span class="hs-comment">-- expression.</span><span>
</span><span id="line-231"></span><span>
</span><span id="line-232"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839483"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentreStack"><span class="hs-identifier hs-type">CostCentreStack</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-233"></span><span>  </span><span id="local-6989586621680839480"><span class="annot"><span class="annottext">ppr :: CostCentreStack -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="GHC.Types.CostCentre.html#CurrentCCS"><span class="hs-identifier hs-var">CurrentCCS</span></a></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CCCS&quot;</span></span><span>
</span><span id="line-234"></span><span>  </span><span class="annot"><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreStack
</span><a href="GHC.Types.CostCentre.html#DontCareCCS"><span class="hs-identifier hs-var">DontCareCCS</span></a></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CCS_DONT_CARE&quot;</span></span><span>
</span><span id="line-235"></span><span>  </span><span class="annot"><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#SingletonCCS"><span class="hs-identifier hs-type">SingletonCCS</span></a></span><span> </span><span id="local-6989586621680839477"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839477"><span class="hs-identifier hs-var">cc</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839477"><span class="hs-identifier hs-var">cc</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;_ccs&quot;</span></span><span>
</span><span id="line-236"></span><span>
</span><span id="line-237"></span><span>
</span><span id="line-238"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-239"></span><span class="hs-comment">-- Printing Cost Centres</span><span>
</span><span id="line-240"></span><span class="hs-comment">--</span><span>
</span><span id="line-241"></span><span class="hs-comment">-- There are several different ways in which we might want to print a</span><span>
</span><span id="line-242"></span><span class="hs-comment">-- cost centre:</span><span>
</span><span id="line-243"></span><span class="hs-comment">--</span><span>
</span><span id="line-244"></span><span class="hs-comment">--      - the name of the cost centre, for profiling output (a C string)</span><span>
</span><span id="line-245"></span><span class="hs-comment">--      - the label, i.e. C label for cost centre in .hc file.</span><span>
</span><span id="line-246"></span><span class="hs-comment">--      - the debugging name, for output in -ddump things</span><span>
</span><span id="line-247"></span><span class="hs-comment">--      - the interface name, for printing in _scc_ exprs in iface files.</span><span>
</span><span id="line-248"></span><span class="hs-comment">--</span><span>
</span><span id="line-249"></span><span class="hs-comment">-- The last 3 are derived from costCentreStr below.  The first is given</span><span>
</span><span id="line-250"></span><span class="hs-comment">-- by costCentreName.</span><span>
</span><span id="line-251"></span><span>
</span><span id="line-252"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839473"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-253"></span><span>  </span><span id="local-6989586621680839472"><span class="annot"><span class="annottext">ppr :: CostCentre -&gt; SDoc
</span><a href="#local-6989586621680839472"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span id="local-6989586621680839471"><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839471"><span class="hs-identifier hs-var">cc</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(PprStyle -&gt; SDoc) -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#getPprStyle"><span class="hs-identifier hs-var">getPprStyle</span></a></span><span> </span><span class="annot"><span class="annottext">((PprStyle -&gt; SDoc) -&gt; SDoc) -&gt; (PprStyle -&gt; SDoc) -&gt; SDoc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-glyph">\</span><span> </span><span id="local-6989586621680839469"><span class="annot"><span class="annottext">PprStyle
</span><a href="#local-6989586621680839469"><span class="hs-identifier hs-var">sty</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-254"></span><span>           </span><span class="hs-keyword">if</span><span> </span><span class="annot"><span class="annottext">PprStyle -&gt; Bool
</span><a href="GHC.Utils.Outputable.html#codeStyle"><span class="hs-identifier hs-var">codeStyle</span></a></span><span> </span><span class="annot"><span class="annottext">PprStyle
</span><a href="#local-6989586621680839469"><span class="hs-identifier hs-var">sty</span></a></span><span>
</span><span id="line-255"></span><span>           </span><span class="hs-keyword">then</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppCostCentreLbl"><span class="hs-identifier hs-var">ppCostCentreLbl</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839471"><span class="hs-identifier hs-var">cc</span></a></span><span>
</span><span id="line-256"></span><span>           </span><span class="hs-keyword">else</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CostCentre -&gt; String
</span><a href="GHC.Types.CostCentre.html#costCentreUserName"><span class="hs-identifier hs-var">costCentreUserName</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre
</span><a href="#local-6989586621680839471"><span class="hs-identifier hs-var">cc</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-257"></span><span>
</span><span id="line-258"></span><span class="hs-comment">-- Printing in Core</span><span>
</span><span id="line-259"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprCostCentreCore"><span class="hs-identifier hs-type">pprCostCentreCore</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-260"></span><span id="pprCostCentreCore"><span class="annot"><span class="annottext">pprCostCentreCore :: CostCentre -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#pprCostCentreCore"><span class="hs-identifier hs-var hs-var">pprCostCentreCore</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839466"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839466"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span>
</span><span id="line-261"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;__sccC&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#braces"><span class="hs-identifier hs-var">braces</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Module -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839466"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-262"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprCostCentreCore"><span class="hs-identifier hs-var">pprCostCentreCore</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839463"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839463"><span class="hs-identifier hs-var">flavour</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_name :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839462"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839462"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">,</span><span>
</span><span id="line-263"></span><span>                             </span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839461"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839461"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_loc :: CostCentre -&gt; SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var">cc_loc</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839460"><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839460"><span class="hs-identifier hs-var">loc</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span>
</span><span id="line-264"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;__scc&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%2B%3E"><span class="hs-operator hs-var">&lt;+&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#braces"><span class="hs-identifier hs-var">braces</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[SDoc] -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#hsep"><span class="hs-identifier hs-var">hsep</span></a></span><span> </span><span class="hs-special">[</span><span>
</span><span id="line-265"></span><span>        </span><span class="annot"><span class="annottext">Module -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839461"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#char"><span class="hs-identifier hs-var">char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'.'</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">CcName -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ftext"><span class="hs-identifier hs-var">ftext</span></a></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839462"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-266"></span><span>        </span><span class="annot"><span class="annottext">CCFlavour -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#pprFlavourCore"><span class="hs-identifier hs-var">pprFlavourCore</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839463"><span class="hs-identifier hs-var">flavour</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-267"></span><span>        </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#whenPprDebug"><span class="hs-identifier hs-var">whenPprDebug</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">SrcSpan -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839460"><span class="hs-identifier hs-var">loc</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-268"></span><span>    </span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-269"></span><span>
</span><span id="line-270"></span><span class="hs-comment">-- ^ Print a flavour in Core</span><span>
</span><span id="line-271"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprFlavourCore"><span class="hs-identifier hs-type">pprFlavourCore</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-272"></span><span id="pprFlavourCore"><span class="annot"><span class="annottext">pprFlavourCore :: CCFlavour -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#pprFlavourCore"><span class="hs-identifier hs-var hs-var">pprFlavourCore</span></a></span></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;__C&quot;</span></span><span>
</span><span id="line-273"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprFlavourCore"><span class="hs-identifier hs-var">pprFlavourCore</span></a></span><span> </span><span id="local-6989586621680839454"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839454"><span class="hs-identifier hs-var">f</span></a></span></span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#pprIdxCore"><span class="hs-identifier hs-var">pprIdxCore</span></a></span><span> </span><span class="annot"><span class="annottext">(Int -&gt; SDoc) -&gt; Int -&gt; SDoc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour -&gt; Int
</span><a href="GHC.Types.CostCentre.html#flavourIndex"><span class="hs-identifier hs-var">flavourIndex</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839454"><span class="hs-identifier hs-var">f</span></a></span><span>
</span><span id="line-274"></span><span>
</span><span id="line-275"></span><span class="hs-comment">-- ^ Print a flavour's index in Core</span><span>
</span><span id="line-276"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprIdxCore"><span class="hs-identifier hs-type">pprIdxCore</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-277"></span><span id="pprIdxCore"><span class="annot"><span class="annottext">pprIdxCore :: Int -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#pprIdxCore"><span class="hs-identifier hs-var hs-var">pprIdxCore</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-278"></span><span class="annot"><a href="GHC.Types.CostCentre.html#pprIdxCore"><span class="hs-identifier hs-var">pprIdxCore</span></a></span><span> </span><span id="local-6989586621680839451"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839451"><span class="hs-identifier hs-var">idx</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#whenPprDebug"><span class="hs-identifier hs-var">whenPprDebug</span></a></span><span> </span><span class="annot"><span class="annottext">(SDoc -&gt; SDoc) -&gt; SDoc -&gt; SDoc
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839451"><span class="hs-identifier hs-var">idx</span></a></span><span>
</span><span id="line-279"></span><span>
</span><span id="line-280"></span><span class="hs-comment">-- Printing as a C label</span><span>
</span><span id="line-281"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppCostCentreLbl"><span class="hs-identifier hs-type">ppCostCentreLbl</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-282"></span><span id="ppCostCentreLbl"><span class="annot"><span class="annottext">ppCostCentreLbl :: CostCentre -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppCostCentreLbl"><span class="hs-identifier hs-var hs-var">ppCostCentreLbl</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span>  </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839450"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839450"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Module -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839450"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;_CAFs_cc&quot;</span></span><span>
</span><span id="line-283"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppCostCentreLbl"><span class="hs-identifier hs-var">ppCostCentreLbl</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839449"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839449"><span class="hs-identifier hs-var">f</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_name :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839448"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839448"><span class="hs-identifier hs-var">n</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_mod :: CostCentre -&gt; Module
</span><a href="GHC.Types.CostCentre.html#cc_mod"><span class="hs-identifier hs-var">cc_mod</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839447"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839447"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span>
</span><span id="line-284"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Module -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839447"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#char"><span class="hs-identifier hs-var">char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'_'</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">FastZString -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ztext"><span class="hs-identifier hs-var">ztext</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CcName -&gt; FastZString
</span><a href="GHC.Data.FastString.html#zEncodeFS"><span class="hs-identifier hs-var">zEncodeFS</span></a></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839448"><span class="hs-identifier hs-var">n</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">Char -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#char"><span class="hs-identifier hs-var">char</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'_'</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span>
</span><span id="line-285"></span><span>        </span><span class="annot"><span class="annottext">CCFlavour -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-var">ppFlavourLblComponent</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839449"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;_cc&quot;</span></span><span>
</span><span id="line-286"></span><span>
</span><span id="line-287"></span><span class="hs-comment">-- ^ Print the flavour component of a C label</span><span>
</span><span id="line-288"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-type">ppFlavourLblComponent</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-289"></span><span id="ppFlavourLblComponent"><span class="annot"><span class="annottext">ppFlavourLblComponent :: CCFlavour -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-var hs-var">ppFlavourLblComponent</span></a></span></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CAF&quot;</span></span><span>
</span><span id="line-290"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-var">ppFlavourLblComponent</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#ExprCC"><span class="hs-identifier hs-type">ExprCC</span></a></span><span> </span><span id="local-6989586621680839443"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839443"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;EXPR&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppIdxLblComponent"><span class="hs-identifier hs-var">ppIdxLblComponent</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839443"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-291"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-var">ppFlavourLblComponent</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#DeclCC"><span class="hs-identifier hs-type">DeclCC</span></a></span><span> </span><span id="local-6989586621680839441"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839441"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;DECL&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppIdxLblComponent"><span class="hs-identifier hs-var">ppIdxLblComponent</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839441"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-292"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppFlavourLblComponent"><span class="hs-identifier hs-var">ppFlavourLblComponent</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#HpcCC"><span class="hs-identifier hs-type">HpcCC</span></a></span><span> </span><span id="local-6989586621680839440"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839440"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;HPC&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppIdxLblComponent"><span class="hs-identifier hs-var">ppIdxLblComponent</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839440"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-293"></span><span>
</span><span id="line-294"></span><span class="hs-comment">-- ^ Print the flavour index component of a C label</span><span>
</span><span id="line-295"></span><span class="annot"><a href="GHC.Types.CostCentre.html#ppIdxLblComponent"><span class="hs-identifier hs-type">ppIdxLblComponent</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.State.html#CostCentreIndex"><span class="hs-identifier hs-type">CostCentreIndex</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#SDoc"><span class="hs-identifier hs-type">SDoc</span></a></span><span>
</span><span id="line-296"></span><span id="ppIdxLblComponent"><span class="annot"><span class="annottext">ppIdxLblComponent :: CostCentreIndex -&gt; SDoc
</span><a href="GHC.Types.CostCentre.html#ppIdxLblComponent"><span class="hs-identifier hs-var hs-var">ppIdxLblComponent</span></a></span></span><span> </span><span id="local-6989586621680839439"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839439"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-297"></span><span>  </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; Int
</span><a href="GHC.Types.CostCentre.State.html#unCostCentreIndex"><span class="hs-identifier hs-var hs-var">unCostCentreIndex</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839439"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-298"></span><span>    </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">SDoc
</span><a href="GHC.Utils.Outputable.html#empty"><span class="hs-identifier hs-var">empty</span></a></span><span>
</span><span id="line-299"></span><span>    </span><span id="local-6989586621680839438"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839438"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680839438"><span class="hs-identifier hs-var">n</span></a></span><span>
</span><span id="line-300"></span><span>
</span><span id="line-301"></span><span class="hs-comment">-- This is the name to go in the user-displayed string,</span><span>
</span><span id="line-302"></span><span class="hs-comment">-- recorded in the cost centre declaration</span><span>
</span><span id="line-303"></span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreUserName"><span class="hs-identifier hs-type">costCentreUserName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-304"></span><span id="costCentreUserName"><span class="annot"><span class="annottext">costCentreUserName :: CostCentre -&gt; String
</span><a href="GHC.Types.CostCentre.html#costCentreUserName"><span class="hs-identifier hs-var hs-var">costCentreUserName</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CcName -&gt; String
</span><a href="GHC.Data.FastString.html#unpackFS"><span class="hs-identifier hs-var">unpackFS</span></a></span><span> </span><span class="annot"><span class="annottext">(CcName -&gt; String)
-&gt; (CostCentre -&gt; CcName) -&gt; CostCentre -&gt; String
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#costCentreUserNameFS"><span class="hs-identifier hs-var">costCentreUserNameFS</span></a></span><span>
</span><span id="line-305"></span><span>
</span><span id="line-306"></span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreUserNameFS"><span class="hs-identifier hs-type">costCentreUserNameFS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Data.FastString.html#FastString"><span class="hs-identifier hs-type">FastString</span></a></span><span>
</span><span id="line-307"></span><span id="costCentreUserNameFS"><span class="annot"><span class="annottext">costCentreUserNameFS :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#costCentreUserNameFS"><span class="hs-identifier hs-var hs-var">costCentreUserNameFS</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span> </span><span class="hs-special">{</span><span class="hs-special">}</span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; CcName
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CAF&quot;</span></span><span>
</span><span id="line-308"></span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreUserNameFS"><span class="hs-identifier hs-var">costCentreUserNameFS</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span class="hs-special">{</span><span class="annot"><span class="annottext">cc_name :: CostCentre -&gt; CcName
</span><a href="GHC.Types.CostCentre.html#cc_name"><span class="hs-identifier hs-var">cc_name</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839435"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839435"><span class="hs-identifier hs-var">name</span></a></span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">cc_flavour :: CostCentre -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#cc_flavour"><span class="hs-identifier hs-var">cc_flavour</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="local-6989586621680839434"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839434"><span class="hs-identifier hs-var">is_caf</span></a></span></span><span class="hs-special">}</span><span class="hs-special">)</span><span>
</span><span id="line-309"></span><span>  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839434"><span class="hs-identifier hs-var">is_caf</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-310"></span><span>      </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; CcName
</span><a href="GHC.Data.FastString.html#mkFastString"><span class="hs-identifier hs-var">mkFastString</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;CAF:&quot;</span></span><span> </span><span class="annot"><span class="annottext">CcName -&gt; CcName -&gt; CcName
</span><a href="GHC.Data.FastString.html#appendFS"><span class="hs-operator hs-var">`appendFS`</span></a></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839435"><span class="hs-identifier hs-var">name</span></a></span><span>
</span><span id="line-311"></span><span>      </span><span class="annot"><span class="annottext">CCFlavour
</span><span class="hs-identifier">_</span></span><span>     </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839435"><span class="hs-identifier hs-var">name</span></a></span><span>
</span><span id="line-312"></span><span>
</span><span id="line-313"></span><span class="annot"><a href="GHC.Types.CostCentre.html#costCentreSrcSpan"><span class="hs-identifier hs-type">costCentreSrcSpan</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.SrcLoc.html#SrcSpan"><span class="hs-identifier hs-type">SrcSpan</span></a></span><span>
</span><span id="line-314"></span><span id="costCentreSrcSpan"><span class="annot"><span class="annottext">costCentreSrcSpan :: CostCentre -&gt; SrcSpan
</span><a href="GHC.Types.CostCentre.html#costCentreSrcSpan"><span class="hs-identifier hs-var hs-var">costCentreSrcSpan</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CostCentre -&gt; SrcSpan
</span><a href="GHC.Types.CostCentre.html#cc_loc"><span class="hs-identifier hs-var hs-var">cc_loc</span></a></span><span>
</span><span id="line-315"></span><span>
</span><span id="line-316"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839431"><span class="annot"><a href="GHC.Utils.Binary.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CCFlavour"><span class="hs-identifier hs-type">CCFlavour</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-317"></span><span>    </span><span id="local-6989586621680839415"><span class="annot"><span class="annottext">put_ :: BinHandle -&gt; CCFlavour -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var hs-var hs-var hs-var">put_</span></a></span></span><span> </span><span id="local-6989586621680839413"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839413"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-318"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839413"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>
</span><span id="line-319"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680839411"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839411"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#ExprCC"><span class="hs-identifier hs-type">ExprCC</span></a></span><span> </span><span id="local-6989586621680839410"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839410"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-320"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839411"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-321"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; CostCentreIndex -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839411"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839410"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-322"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680839409"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839409"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#DeclCC"><span class="hs-identifier hs-type">DeclCC</span></a></span><span> </span><span id="local-6989586621680839408"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839408"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-323"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839409"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">2</span></span><span>
</span><span id="line-324"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; CostCentreIndex -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839409"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839408"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-325"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680839407"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839407"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#HpcCC"><span class="hs-identifier hs-type">HpcCC</span></a></span><span> </span><span id="local-6989586621680839406"><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839406"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-326"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839407"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">3</span></span><span>
</span><span id="line-327"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; CostCentreIndex -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839407"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">CostCentreIndex
</span><a href="#local-6989586621680839406"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-328"></span><span>    </span><span id="local-6989586621680839389"><span class="annot"><span class="annottext">get :: BinHandle -&gt; IO CCFlavour
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var hs-var hs-var hs-var">get</span></a></span></span><span> </span><span id="local-6989586621680839387"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839387"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-329"></span><span>            </span><span id="local-6989586621680839386"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680839386"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO Word8
</span><a href="GHC.Utils.Binary.html#getByte"><span class="hs-identifier hs-var">getByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839387"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-330"></span><span>            </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680839386"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-331"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span class="annot"><span class="annottext">CCFlavour -&gt; IO CCFlavour
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="GHC.Types.CostCentre.html#CafCC"><span class="hs-identifier hs-var">CafCC</span></a></span><span>
</span><span id="line-332"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#ExprCC"><span class="hs-identifier hs-var">ExprCC</span></a></span><span> </span><span class="annot"><span class="annottext">(CostCentreIndex -&gt; CCFlavour)
-&gt; IO CostCentreIndex -&gt; IO CCFlavour
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO CostCentreIndex
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839387"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-333"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">2</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#DeclCC"><span class="hs-identifier hs-var">DeclCC</span></a></span><span> </span><span class="annot"><span class="annottext">(CostCentreIndex -&gt; CCFlavour)
-&gt; IO CostCentreIndex -&gt; IO CCFlavour
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO CostCentreIndex
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839387"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-334"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">CostCentreIndex -&gt; CCFlavour
</span><a href="GHC.Types.CostCentre.html#HpcCC"><span class="hs-identifier hs-var">HpcCC</span></a></span><span> </span><span class="annot"><span class="annottext">(CostCentreIndex -&gt; CCFlavour)
-&gt; IO CostCentreIndex -&gt; IO CCFlavour
forall (f :: * -&gt; *) a b. Functor f =&gt; (a -&gt; b) -&gt; f a -&gt; f b
</span><a href="../../base/src/Data.Functor.html#%3C%24%3E"><span class="hs-operator hs-var">&lt;$&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO CostCentreIndex
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839387"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-335"></span><span>
</span><span id="line-336"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680839381"><span class="annot"><a href="GHC.Utils.Binary.html#Binary"><span class="hs-identifier hs-type">Binary</span></a></span><span> </span><span class="annot"><a href="GHC.Types.CostCentre.html#CostCentre"><span class="hs-identifier hs-type">CostCentre</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-337"></span><span>    </span><span id="local-6989586621680839365"><span class="annot"><span class="annottext">put_ :: BinHandle -&gt; CostCentre -&gt; IO ()
</span><a href="#local-6989586621680839365"><span class="hs-identifier hs-var hs-var hs-var hs-var">put_</span></a></span></span><span> </span><span id="local-6989586621680839364"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839364"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-type">NormalCC</span></a></span><span> </span><span id="local-6989586621680839363"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839363"><span class="hs-identifier hs-var">aa</span></a></span></span><span> </span><span id="local-6989586621680839362"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839362"><span class="hs-identifier hs-var">ab</span></a></span></span><span> </span><span id="local-6989586621680839361"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839361"><span class="hs-identifier hs-var">ac</span></a></span></span><span> </span><span id="local-6989586621680839360"><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839360"><span class="hs-identifier hs-var">_ad</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-338"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839364"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span>
</span><span id="line-339"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; CCFlavour -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839364"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839363"><span class="hs-identifier hs-var">aa</span></a></span><span>
</span><span id="line-340"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; CcName -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839364"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839362"><span class="hs-identifier hs-var">ab</span></a></span><span>
</span><span id="line-341"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Module -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839364"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839361"><span class="hs-identifier hs-var">ac</span></a></span><span>
</span><span id="line-342"></span><span>    </span><span class="annot"><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span id="local-6989586621680839359"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839359"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-type">AllCafsCC</span></a></span><span> </span><span id="local-6989586621680839358"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839358"><span class="hs-identifier hs-var">ae</span></a></span></span><span> </span><span id="local-6989586621680839357"><span class="annot"><span class="annottext">SrcSpan
</span><a href="#local-6989586621680839357"><span class="hs-identifier hs-var">_af</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-343"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Word8 -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#putByte"><span class="hs-identifier hs-var">putByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839359"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">1</span></span><span>
</span><span id="line-344"></span><span>            </span><span class="annot"><span class="annottext">BinHandle -&gt; Module -&gt; IO ()
forall a. Binary a =&gt; BinHandle -&gt; a -&gt; IO ()
</span><a href="GHC.Utils.Binary.html#put_"><span class="hs-identifier hs-var">put_</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839359"><span class="hs-identifier hs-var">bh</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839358"><span class="hs-identifier hs-var">ae</span></a></span><span>
</span><span id="line-345"></span><span>    </span><span id="local-6989586621680839342"><span class="annot"><span class="annottext">get :: BinHandle -&gt; IO CostCentre
</span><a href="#local-6989586621680839342"><span class="hs-identifier hs-var hs-var hs-var hs-var">get</span></a></span></span><span> </span><span id="local-6989586621680839341"><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-346"></span><span>            </span><span id="local-6989586621680839340"><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680839340"><span class="hs-identifier hs-var">h</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO Word8
</span><a href="GHC.Utils.Binary.html#getByte"><span class="hs-identifier hs-var">getByte</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-347"></span><span>            </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Word8
</span><a href="#local-6989586621680839340"><span class="hs-identifier hs-var">h</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-348"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-number">0</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span id="local-6989586621680839339"><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839339"><span class="hs-identifier hs-var">aa</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO CCFlavour
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-349"></span><span>                      </span><span id="local-6989586621680839338"><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839338"><span class="hs-identifier hs-var">ab</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO CcName
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-350"></span><span>                      </span><span id="local-6989586621680839337"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839337"><span class="hs-identifier hs-var">ac</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO Module
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-351"></span><span>                      </span><span class="annot"><span class="annottext">CostCentre -&gt; IO CostCentre
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CCFlavour -&gt; CcName -&gt; Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#NormalCC"><span class="hs-identifier hs-var">NormalCC</span></a></span><span> </span><span class="annot"><span class="annottext">CCFlavour
</span><a href="#local-6989586621680839339"><span class="hs-identifier hs-var">aa</span></a></span><span> </span><span class="annot"><span class="annottext">CcName
</span><a href="#local-6989586621680839338"><span class="hs-identifier hs-var">ab</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839337"><span class="hs-identifier hs-var">ac</span></a></span><span> </span><span class="annot"><span class="annottext">SrcSpan
</span><a href="GHC.Types.SrcLoc.html#noSrcSpan"><span class="hs-identifier hs-var">noSrcSpan</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-352"></span><span>              </span><span class="annot"><span class="annottext">Word8
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span> </span><span id="local-6989586621680839335"><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839335"><span class="hs-identifier hs-var">ae</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">BinHandle -&gt; IO Module
forall a. Binary a =&gt; BinHandle -&gt; IO a
</span><a href="GHC.Utils.Binary.html#get"><span class="hs-identifier hs-var">get</span></a></span><span> </span><span class="annot"><span class="annottext">BinHandle
</span><a href="#local-6989586621680839341"><span class="hs-identifier hs-var">bh</span></a></span><span>
</span><span id="line-353"></span><span>                      </span><span class="annot"><span class="annottext">CostCentre -&gt; IO CostCentre
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Module -&gt; SrcSpan -&gt; CostCentre
</span><a href="GHC.Types.CostCentre.html#AllCafsCC"><span class="hs-identifier hs-var">AllCafsCC</span></a></span><span> </span><span class="annot"><span class="annottext">Module
</span><a href="#local-6989586621680839335"><span class="hs-identifier hs-var">ae</span></a></span><span> </span><span class="annot"><span class="annottext">SrcSpan
</span><a href="GHC.Types.SrcLoc.html#noSrcSpan"><span class="hs-identifier hs-var">noSrcSpan</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-354"></span><span>
</span><span id="line-355"></span><span>    </span><span class="hs-comment">-- We ignore the SrcSpans in CostCentres when we serialise them,</span><span>
</span><span id="line-356"></span><span>    </span><span class="hs-comment">-- and set the SrcSpans to noSrcSpan when deserialising.  This is</span><span>
</span><span id="line-357"></span><span>    </span><span class="hs-comment">-- ok, because we only need the SrcSpan when declaring the</span><span>
</span><span id="line-358"></span><span>    </span><span class="hs-comment">-- CostCentre in the original module, it is not used by importing</span><span>
</span><span id="line-359"></span><span>    </span><span class="hs-comment">-- modules.</span><span>
</span><span id="line-360"></span></pre></body></html>